package com.lk.security.authentication;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.security.core.Authentication;

/**
 * @description: 用来监听认证成功后的接口
 * @author: Aspirin
 * @create: 2020-08-22 10:32
 */
public interface AuthenticationSuccessListener {

  /**
   * 认证成功监听方法
   *
   * @param request
   * @param response
   * @param authentication 当用户认证成功后，会讲认证对象传入
   */
  void successListener(
      HttpServletRequest request, HttpServletResponse response, Authentication authentication);
}
